From 1fb8dc56e7d5284f8006ded76f8452f18ad9b0d2 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Fri, 6 May 2016 12:03:28 +0200 Subject: [PATCH] flask/policy: don't audit commandline / build_id queries Signed-off-by: Daniel De Graaf Signed-off-by: Doug Goldstein Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Wei Liu Release-acked-by: Wei Liu --- tools/flask/policy/policy/modules/xen/xen.te | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/flask/policy/policy/modules/xen/xen.te b/tools/flask/policy/policy/modules/xen/xen.te index bef33b03c3..0b1c955b4f 100644 --- a/tools/flask/policy/policy/modules/xen/xen.te +++ b/tools/flask/policy/policy/modules/xen/xen.te @@ -155,6 +155,15 @@ allow domain_type xen_t:version { xen_changeset xen_pagesize xen_guest_handle }; +# These queries don't need auditing when denied. They can be +# encountered in normal operation by xl or by reading sysfs files in +# Linux, so without this they will show up in the logs. Since these +# operations return valid responses (like "denied"), hiding the denials +# should not break anything. +dontaudit domain_type xen_t:version { + xen_commandline xen_build_id +}; + ############################################################################### # # Domain creation -- 2.30.2